<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('showPackInfo',array('role_id' => $roleId,'name' => $nickname))}">角色名：{$nickname}</a></li>
    </ul>
    <form class="search_form" method="get" action="{:url('showPackInfo')}">
        <div class="well form-inline margin-top-20">
            物品ID：
            <input type="text" class="form-control selector" name="item_id" style="width:180px;" value="{:input('request.item_id/d','')}" data-action="selectNode" data-url="{:url('/admin/Ajax/getItem')}" placeholder="输入物品ID或物品名称">
            <input type="hidden" class="input length_8" name="role_id" readonly="readonly" value="{$roleId}" id="role_id" >
            <input type="hidden" class="input length_8" name="name" readonly="readonly" value="{$nickname}" id="nickname" >
            <input type="submit" class="btn btn-primary" value="搜索" />
        </div>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <!-- <th>唯一ID</th> -->
                <th>物品ID</th>
                <th>物品名称</th>
                <th>数量</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <!-- <td>{$vo.id}</td> -->
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.num}</td>
                    <td>
                        <if condition="cmf_auth_check(cmf_get_current_admin_id(),'single/PlayerManage/deleteItem')">
                            <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('deleteItem',array('id'=>$vo['id'],'role_id' => $roleId,'num'=>$vo['num']))}">{:lang('DELETE')}</a>
                        <else/>
                            --
                        </if>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
</div>
<script src="__STATIC__/js/admin.js?v=4"></script>
</body>
</html>